package kotlinquanweizhinan.chapt03条件语句.ifelse嵌套语句
fun main(){
    val name = "Madrigal"
    val healthPoints =80
    val isBlessed = true //是否走运

    if(healthPoints == 100){
        println(name + " is in excellent conditioin!")
    }else if(healthPoints >=90){
        println(name + " has a few scrateches.")
    }else if(healthPoints >=75){
        if(isBlessed){
            println(name + " has some minor woonds but is healing quite quickly!")
        }else{
            println(name + " has some minor wounds.")
        }
    }
    else if(healthPoints >=15){
        println(name + " has some minor wounds.")
    }else{
        println(name + " is in awful condition!")
    }
}